package dryven.model.binding.fieldset;

import java.lang.reflect.Method;

import dryven.model.binding.proxy.Binding;

public class BoundField extends MethodField {

	public BoundField(Binding<?> binding) {
		super(prepareMethods(binding.getBoundMethod()));
	}
	
	private static Method[] prepareMethods(Method getter) {
		Method setter = MethodField.getSetterForGetter(getter);
		return new Method[]{getter,setter};
	}
}
